package org.jfedor.nxtremotecontrol;

import android.util.Log;

public class Choreography {
	
	public NXTTalker mNXTTalker;
	
	public Choreography(NXTTalker mNXTTalker) {
		super();
		this.mNXTTalker = mNXTTalker;
	}

	public void goStraight(int num, byte left, byte right, byte action){
		for(int i=0; i<num ; i++)
			mNXTTalker.motors3(left, right,action, false, false);
		return;
	}	

	public void turn(int num, byte left, byte right){
		Log.d("Dance", "turn()");
		for(int i=0; i<num ; i++){
			mNXTTalker.motors(left, right, false, false);
		}		
	}	
	
	public void stop(){
		Log.d("Dance", "stop()");
		mNXTTalker.motors3((byte) 0, (byte) 0,(byte) 0, false, false);		
	}	

}
